<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The SWFMovie class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="swfmorph.getshape2.html">SWFMorph::getShape2</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swfmovie.add.html">SWFMovie::add</a></div>
 <div class="up"><a href="book.ming.html">Ming</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.swfmovie" class="reference">
 <h1 class="title">The SWFMovie class</h1>
 
 
 <div class="partintro"><p class="verinfo">(PHP 5 &lt;= 5.3.0, PECL ming SVN)</p>
 

  <div class="section" id="swfmovie.intro">
   <h2 class="title">简介</h2>
   <p class="para">
   <strong class="classname">SWFMovie</strong> is a movie object representing an SWF
   movie.
   </p>
  </div>

 
  <div class="section" id="swfmovie.synopsis">
   <h2 class="title">类摘要</h2>
 

   <div class="classsynopsis">
    <div class="ooclass"></div>
 

    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">SWFMovie</strong>
     </span>
     {</div>

 
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="type">mixed</span><span class="methodname"><a href="swfmovie.add.html" class="methodname">add</a></span>
    ( <span class="methodparam"><span class="type">object</span> <code class="parameter">$instance</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfmovie.addexport.html" class="methodname">addExport</a></span>
    ( <span class="methodparam"><span class="type"><span class="type SWFCharacter">SWFCharacter</span></span> <code class="parameter">$char</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">mixed</span><span class="methodname"><a href="swfmovie.addfont.html" class="methodname">addFont</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.swffont.html" class="type SWFFont">SWFFont</a></span> <code class="parameter">$font</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="methodname"><a href="swfmovie.construct.html" class="methodname">__construct</a></span>
    ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$version</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">SWFSprite</span><span class="methodname"><a href="swfmovie.importchar.html" class="methodname">importChar</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$libswf</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">SWFFontChar</span><span class="methodname"><a href="swfmovie.importfont.html" class="methodname">importFont</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$libswf</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfmovie.labelframe.html" class="methodname">labelFrame</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$label</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfmovie.nextframe.html" class="methodname">nextFrame</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><a href="swfmovie.output.html" class="methodname">output</a></span>
    ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$compression</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfmovie.remove.html" class="methodname">remove</a></span>
   ( <span class="methodparam"><span class="type">object</span> <code class="parameter">$instance</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><a href="swfmovie.save.html" class="methodname">save</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$compression</code><span class="initializer"> = -1</span></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><a href="swfmovie.savetofile.html" class="methodname">saveToFile</a></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$x</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$compression</code><span class="initializer"> = -1</span></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfmovie.setbackground.html" class="methodname">setbackground</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$red</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$green</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$blue</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfmovie.setdimension.html" class="methodname">setDimension</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$width</code></span>
   , <span class="methodparam"><span class="type">float</span> <code class="parameter">$height</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfmovie.setframes.html" class="methodname">setFrames</a></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$number</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfmovie.setrate.html" class="methodname">setRate</a></span>
    ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$rate</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">SWFSoundInstance</span><span class="methodname"><a href="swfmovie.startsound.html" class="methodname">startSound</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.swfsound.html" class="type SWFSound">SWFSound</a></span> <code class="parameter">$sound</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfmovie.stopsound.html" class="methodname">stopSound</a></span>
    ( <span class="methodparam"><span class="type"><a href="class.swfsound.html" class="type SWFSound">SWFSound</a></span> <code class="parameter">$sound</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="type">int</span><span class="methodname"><a href="swfmovie.streammp3.html" class="methodname">streamMP3</a></span>
    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$mp3file</code></span>
   [, <span class="methodparam"><span class="type">float</span> <code class="parameter">$skip</code><span class="initializer"> = 0</span></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="type">void</span><span class="methodname"><a href="swfmovie.writeexports.html" class="methodname">writeExports</a></span>
    ( <span class="methodparam">void</span>
   )</div>

 
   }</div>

 
  </div>
 </div>
 




























































































 




























 
<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="swfmovie.add.html">SWFMovie::add</a> — Adds any type of data to a movie</li><li><a href="swfmovie.addexport.html">SWFMovie::addExport</a> — 说明</li><li><a href="swfmovie.addfont.html">SWFMovie::addFont</a> — 说明</li><li><a href="swfmovie.construct.html">SWFMovie::__construct</a> — Creates a new movie object, representing an SWF version 4 movie</li><li><a href="swfmovie.importchar.html">SWFMovie::importChar</a> — 说明</li><li><a href="swfmovie.importfont.html">SWFMovie::importFont</a> — 说明</li><li><a href="swfmovie.labelframe.html">SWFMovie::labelFrame</a> — Labels a frame</li><li><a href="swfmovie.nextframe.html">SWFMovie::nextFrame</a> — Moves to the next frame of the animation</li><li><a href="swfmovie.output.html">SWFMovie::output</a> — Dumps your lovingly prepared movie out</li><li><a href="swfmovie.remove.html">SWFMovie::remove</a> — Removes the object instance from the display list</li><li><a href="swfmovie.save.html">SWFMovie::save</a> — Saves the SWF movie in a file</li><li><a href="swfmovie.savetofile.html">SWFMovie::saveToFile</a> — 说明</li><li><a href="swfmovie.setbackground.html">SWFMovie::setbackground</a> — Sets the background color</li><li><a href="swfmovie.setdimension.html">SWFMovie::setDimension</a> — Sets the movie's width and height</li><li><a href="swfmovie.setframes.html">SWFMovie::setFrames</a> — Sets the total number of frames in the animation</li><li><a href="swfmovie.setrate.html">SWFMovie::setRate</a> — Sets the animation's frame rate</li><li><a href="swfmovie.startsound.html">SWFMovie::startSound</a> — 说明</li><li><a href="swfmovie.stopsound.html">SWFMovie::stopSound</a> — 说明</li><li><a href="swfmovie.streammp3.html">SWFMovie::streamMP3</a> — Streams a MP3 file</li><li><a href="swfmovie.writeexports.html">SWFMovie::writeExports</a> — 说明</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="swfmorph.getshape2.html">SWFMorph::getShape2</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swfmovie.add.html">SWFMovie::add</a></div>
 <div class="up"><a href="book.ming.html">Ming</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
